﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using YWTSSys.BLL;
using YWTSSys.Library;
using YWTSSys.Model;
using System.Text;


namespace YWTSSys.Web.MachineSys.YWTSWeb.gl
{
    public partial class CustomerGroupGroupList : PageBase
    {
        protected override Permission[] PowerKey
        {
            get
            {
                return new Permission[] { Permission.查看, Permission.修改, Permission.新增, Permission.删除 };
            }
        }
        protected override string DWZRef
        {
            get
            {
                return "CustomerGroupMasterListaspx";
            }
        }

        protected string AreaName
        {
            get
            {
                return GetRequestValue<string>("AreaName", "");

            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            DataBind();
            this.AddLog(Permission.查看, "");
        }

        protected void DataBind()
        {

            this.rpMenu.DataSource = CustomerGroupController.GetAllGroupByArea(AreaName);
            this.rpMenu.DataBind();
        }


    }
}